package com.morehair.utils;

import com.morehair.bean.pojo.User;
import org.apache.shiro.SecurityUtils;

/**
 * Author  kkw
 * Date  2021/6/8 17:02
 * Version 1.0
 * Description :
 */
public class GetNowUser {
    public static User getUser() {
        User user = (User) SecurityUtils.getSubject().getPrincipal();
        return user;
    }
}
